#ifndef QTUIOLISTENER_H
#define QTUIOLISTENER_H

#include <QObject>
#include "TUIO/TuioListener.h"
#include <QMouseEvent>

using namespace TUIO;
enum TouchType  { TOUCHDOWN = 0, TOUCHUP = 1, TOUCHMOVE = 2 };
class QTuioListener : public QObject, TuioListener
{
    Q_OBJECT
public:
    void addTuioObject(TuioObject *tobj);
    void updateTuioObject(TuioObject *tobj);
    void removeTuioObject(TuioObject *tobj);
    void addTuioCursor(TuioCursor *tcur);
    void updateTuioCursor(TuioCursor *tcur);
    void removeTuioCursor(TuioCursor *tcur);
    void refresh(TuioTime frameTime);
    QTuioListener();

signals:
    void touch(int id, double x,double y, int type);

};

#endif // QTUIOLISTENER_H
